import os


def del_file(fp):
	if os.path.exists(fp):
		os.remove(fp)
	else:
		print('no such file:%s'%my_file)


del_file('test.txt')